
html_tools_setting = {}
html_tools_setting['font_size'] = 20

function set_text_font_weight(id, font, weight){
	document.getElementById(id).style.fontSize = font
	document.getElementById(id).style.fontWeight = weight
}
function div_link(left, link, title){
	content = '<div style="margin-left:' + left + 'px;margin-top:10px;float:left;">'
	content += '<a href="' + link + '" style="color:#3a3a3a;">' + title + '</a>'
	content += '</div>'
	return content 
}

function addItem(item, td, start,end){
	return start + '<td ' + td + '><br>' + item + '<br></td>' + end
}

function addTitle(title,id, start,end){
	return start + '<td colspan=4><br><u>' + title + '</u><br></td>' + end
}
function add_checkbox(title,id, start,end){
	cb = start + '<td><input type="checkbox" name="checkbox" value="value">' + title + '</td>' + end
	return cb
}

function add_text_area(title,id,start, end, value){
	tarea = start + '<td colspan=4>'
	tarea += 	'<br>' + title + '<br>'
	tarea += 	'<textarea id=' + id + ' rows="7" cols="80">'
	tarea += value
	tarea += 	'</textarea>'
	tarea += '</td>' + end
	return tarea
}

function add_input(title, id, start, end, value){

	input = start + '<td style="text-align:right;">' + title + '</td>'
	input += '<td><input type="text" id="' + id + '" value="' + value + '" maxlength="30" style="font-size:' 
	input += html_tools_setting['font_size'] + 'px;"></td>' + end
	return input
}


